package cn.iocoder.yudao.module.resource.controller.admin.messagecollection.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 消息仓库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MessageCollectionRespVO {

    @Schema(description = "消息id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10143")
    @ExcelProperty("消息id")
    private String messageId;

    @Schema(description = "消息来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("消息来源")
    private Integer senderType;

    @Schema(description = "用户消息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "用户消息", converter = DictConvert.class)
    @DictFormat("MessageSenderType") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String userText;

    @Schema(description = "回复消息")
    @ExcelProperty("回复消息")
    private String replyText;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "相似度")
    @ExcelProperty("相似度")
    private Float similarity;

}